// 当前播放列表
let playlist = []

export const setPlayList = (playlistInfo) => {
    playlist = playlistInfo
    console.log(playlist);
}

export const getPlayList = () => {
    return playlist
}

export const delPlayList = () => {
    playlist = []
}

export const uptPlayList = (newPlayList) => {
    playlist = [
        ...playlist,
        ...newPlayList
    ]
}


// 当前播放的歌曲在歌单列表的索引
let musicIdx = 0


export const setMusicIdx = (musicIndex) => {
    musicIdx = musicIndex
    console.log(musicIndex);
}

export const getMusicIdx = () => {
    return musicIdx
}

// 首页推荐列表
let recommendList = []

export const setRecommendList = (recommendListInfo) => {
    recommendList = recommendListInfo
    console.log(recommendList);
}

export const getRecommendList = () => {
    return recommendList
}